<?php

namespace app\api\controller;

use app\common\controller\Api;

/**
 * Banner模块
 */

class Banner extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];


    /**
     * Banner图
     * @ApiTitle    (Banner图)
     * @ApiMethod   (GET)
     * @ApiRoute    (/api/banner/getList)
     * @ApiParams   (name="position", type="string", required=true, description="类型:index=首页,about=关于建华,product=产品,news=新闻资讯,contact=联系我们")
     */
    public function getList(\app\common\model\BannerModel $BannerModel)
    {
        $position = $this->request->request('position','index');
        $return = $BannerModel->getList($position);
        $this->success($return['msg'],$return['data'],$return['code']);
    }


}